package com.zrrd.learn.chapter09.collection;

import java.util.List;
import java.util.Stack;
import java.util.Vector;

/**
 * 原理
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/15 13:31
 */

public class VectoryStack {

    public static void main(String[] args) {
        List<String> vc =new Vector<>(3,5);

        Stack<String> stack = new Stack<>();

        stack.add("aa");
        stack.push("ii");
        stack.push("oo");
        stack.add("uu");

        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
    }

}
